package projsa.modelsa;

import java.util.ArrayList;
import java.util.List;

public class SearchCriteria {


    private String date;
    private String from;
    private String to;

    private List<Integer> minutesInDay;


    public SearchCriteria(String date, String from, String to, Integer[] minutesInDay) {
        this.from = from;
        this.to = to;
        this.date = date;
        this.minutesInDay = new ArrayList<Integer>();
        for (int i : minutesInDay) {
            this.minutesInDay.add(i);
        }
    }

    public String getDate() {
        return date;
    }

    public List<Integer> getMinutesInDay() {                          TUt
        return minutesInDay;
    }

    public String getFrom() {
        return from;
    }

    public String getTo() {
        return to;
    }
}
